package com.chenxiao.field.fielddemo.aop;

import com.chenxiao.field.fielddemo.anno.MyCustomAnnotation;
import com.chenxiao.field.fielddemo.aspect.MyAnnotationAspect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @Author: CX
 * @Date: Created in  2023/12/06 18:12
 * @version: v1.0
 * @Description: TODO
 **/
@Configuration
public class AppConfig {
    // 配置你的切面
    @Bean
    public MyAnnotationAspect myAnnotationAspect() {
        return new MyAnnotationAspect();
    }
}